<template>
	<view class="">
		<view class="mainCon"><jyf-parser :html="content"></jyf-parser></view>
	</view>
</template>

<script>
import jyfParser from '@/components/jyf-parser/jyf-parser.vue';
export default {
	data() {
		return {
			content: ""
		};
	},
	onLoad(options) {
		this.id=options.id;
		this.setNavTitle(options.title);
		this.loadData();
	},
	methods:{
		async loadData(){
			const res=await this.$request('user/sys-msg-detail',{id:this.id},{showLoading:true});
			if(res.result==0){
				this.content=res.data.detail;
			}else{
				this.$uti.msg(res.resultNote);
			}
		}
	}
};
</script>

<style scoped>
.mainCon {
	padding: 20upx;
}
</style>
